<?php
	/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 *
 *
 * @copyright		[PalxiDevTeam]
 * @author  		NhanLT
 * @package  		Module_Survey
 * @version 		$v01$
 */
class Survey_Component_Controller_Index extends Phpfox_Component
{
	/**
	 * Class process method wnich is used to execute this component.
	 */
	public function process()
	{
		$bIsUserProfile = false;
		if (defined('PHPFOX_IS_AJAX_CONTROLLER'))
		{
			$bIsUserProfile = true;
			$aUser = Phpfox::getService('user')->get($this->request()->get('profile_id'));
			$this->setParam('aUser', $aUser);
		}

		if (defined('PHPFOX_IS_USER_PROFILE'))
		{
			$bIsUserProfile = true;
			$aUser = $this->getParam('aUser');
		}
		
		$this->template()
		->setTitle(Phpfox::getPhrase('sociallogin.survey'))
		->setHeader('cache', array(
				'layout.css' => 'module_survey',
				'common.js' => 'module_survey',
                                'feed.js' => 'module_feed',						
				'comment.css' => 'style_css',					
				'quick_edit.js' => 'static_script',
				'jquery/plugin/jquery.highlightFade.js' => 'static_script',
				'jquery/plugin/jquery.scrollTo.js' => 'static_script',
                                'pager.css' => 'style_css',
			)
		)
		->assign(array(
				'aFeedStatusLinks' => Phpfox::getService('feed')->getShareLinks(),
			)
		);
	}
}

?>